package com.wxzz.elearing.evaluation.service.openfeign;

import com.wxzz.elearing.evaluation.service.openfeign.sentinel.DocentApiFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "1122-wxzzlearn-user-model", fallback = DocentApiFeignImpl.class)
public interface IDocentApiFeign {

    @RequestMapping(value = "/docent-api/countByPlatformDocentNum", method = RequestMethod.POST)
    Integer countByPlatformDocentNum();

    @RequestMapping(value = "/docent-api/countByEnterpriseDocentNum", method = RequestMethod.POST)
    Integer countByEnterpriseDocentNum();

    @RequestMapping(value = "selectCountByDocent/{enterpriseId}", method = RequestMethod.POST)
    Integer selectCountByDocent(@PathVariable Long enterpriseId);
}
